package com.un.ebs.purchase.dto;

import com.un.ebs.core.validator.NotLessThanZero;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/8/18 16:03
 */
@Data
public class PurchaseOrderAddBySimpleDto {

    @NotNull(message = "SKU ID 不能为空。")
    private String skuId;

    @NotNull(message = "请指定交付日期")
    private Date planDeliver;

    @NotLessThanZero(message = "采购数量不能为零")
    private Double qty;
}
